import {
  request,
} from "@rabbit.do/rabbit";

// 请求手术室的数据
export const fetchRoomsetData = (data) => request({
  url: '/swan/operation/room/find/page',
  data,
});

// 新增手术室/美容室的数据
export const addRoomsetData = (data) => request({
  url: '/swan/operation/room/create',
  data,
});

// 编辑手术室/美容室的数据
export const updateRoomsetData = (data) => request({
  url: '/swan/operation/room/update',
  data,
});

// 删除手术室/美容室的数据
export const deleteRoomsetData = (data) => request({
  url: '/swan/operation/room/delete',
  data,
});

// 获取三级联动的数据
export const addTreeData = (data) => request({
  url: '/swan/product/b/catalog/tree',
  data,
});

// 获取可使用产品的数据
export const addProductData = (data) => request({
  url: '/swan/product/find',
  data,
});
